The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- |
| 18 | This file contains standard test definitions for the Android platform |
| 19 | |
| 20 | Tests are defined by <test> tags with the following attributes |
| 21 | |
| 22 | name package [class runner build_path coverage_target continuous] |
| 23 | |
| 24 | Where: |
| 25 | name: Self-descriptive name used to uniquely identify the test |
| 26 | build_path: File system path, relative to Android build root, to this package's |
| 27 | Android.mk file. If omitted, build/sync step for this test will be skipped |
| 28 | package: Android application package that contains the tests |
| 29 | class: Optional. Fully qualified Java test class to run. |
| 30 | runner: Fully qualified InstrumentationTestRunner to execute. If omitted, |
| 31 | will default to android.test.InstrumentationTestRunner |
| 32 | coverage_target: Build name of Android package this test targets - these targets |
| 33 | are defined in the coverage_targets.xml file. Used as basis for code |
| 34 | coverage metrics. If omitted, code coverage will not be supported for this |
| 35 | test |
| 36 | continuous: Optional boolean. Default is false. Set to true if tests are known |
| 37 | to be reliable, and should be included in a continuous test system. false if |
| 38 | they are under development. |
| 39 | |
| 40 | These attributes map to the following commands: |
| 41 | (if class is defined) |
| 42 | adb shell am instrument -w <package>/<runner> |
| 43 | (else) |
| 44 | adb shell am instrument -w -e class <class> <package>/<runner> |
| 45 | |
| 46 | --> |
| 47 | |
| 48 | <test-definitions version="1"> |
| 49 | |
| 50 | <!-- system-wide tests --> |
| 51 | <test name="framework" |
| 52 | build_path="frameworks/base/tests/FrameworkTest" |
| 53 | package="com.android.frameworktest.tests" |
| 54 | class="com.android.frameworktest.AllTests" |
| 55 | coverage_target="framework" |
| 56 | continuous="true" /> |
| 57 | |
| 58 | <test name="android" |
| 59 | build_path="frameworks/base/tests/AndroidTests" |
| 60 | package="com.android.unit_tests" |
| 61 | class="com.android.unit_tests.AndroidTests" |
| 62 | coverage_target="framework" |
| 63 | continuous="true" /> |
| 64 | |
| 65 | <test name="smoke" |
| 66 | build_path="frameworks/base/tests/SmokeTest" |
| 67 | package="com.android.smoketest.tests" |
| 68 | coverage_target="framework" |
| 69 | continuous="true" /> |
| 70 | |
| 71 | <test name="core" |
| 72 | build_path="frameworks/base/tests/CoreTests" |
| 73 | package="android.core" |
| 74 | class="android.core.CoreTests" |
| 75 | coverage_target="framework" |
| 76 | continuous="true" /> |
| 77 | |
| 78 | <test name="libcore" |
| 79 | build_path="frameworks/base/tests/CoreTests" |
| 80 | package="android.core" |
| 81 | class="android.core.JavaTests" |
| 82 | coverage_target="framework" /> |
| 83 | |
| 84 | <test name="apidemos" |
| 85 | build_path="development/samples/ApiDemos" |
| 86 | package="com.example.android.apis.tests" |
| 87 | coverage_target="ApiDemos" |
| 88 | continuous="true" /> |
| 89 | |
| 90 | <!-- targeted framework tests --> |
| 91 | <test name="heap" |
| 92 | build_path="frameworks/base/tests/AndroidTests" |
| 93 | package="com.android.unit_tests" |
| 94 | class="com.android.unit_tests.HeapTest" |
| 95 | coverage_target="framework" /> |
| 96 | |
| 97 | <test name="activity" |
| 98 | build_path="frameworks/base/tests/AndroidTests" |
| 99 | package="com.android.unit_tests" |
| 100 | class="com.android.unit_tests.activity.ActivityTests" |
| 101 | coverage_target="framework" /> |
| 102 | |
| 103 | <!-- obsolete? |
| 104 | <test name="deadlock" |
| 105 | build_path="frameworks/base/tests/Deadlock" |
| 106 | package="com.android.deadlock.tests" |
| 107 | coverage_target="framework" /> |
| 108 | --> |
| 109 | |
| 110 | |
| 111 | <test name="tablemerger" |
| 112 | build_path="frameworks/base/tests/FrameworkTest" |
| 113 | package="com.android.frameworktest.tests" |
| 114 | class="android.content.AbstractTableMergerTest" |
| 115 | coverage_target="framework" /> |
| 116 | |
| 117 | |
| 118 | <!-- selected app tests --> |
| 119 | <test name="browser" |
| 120 | build_path="packages/apps/Browser" |
| 121 | package="com.android.browser" |
| 122 | runner=".BrowserTestRunner" |
| 123 | coverage_target="Browser" /> |
| 124 | |
| 125 | <test name="browserfunc" |
| 126 | build_path="packages/apps/Browser" |
| 127 | package="com.android.browser" |
| 128 | runner=".BrowserFunctionalTestRunner" |
| 129 | coverage_target="Browser" /> |
| 130 | |
| 131 | <test name="calendar" |
| 132 | build_path="packages/apps/Calendar/tests" |
| 133 | package="com.android.calendar.tests" |
| 134 | coverage_target="Calendar" |
| 135 | continuous="true" /> |
| 136 | |
| 137 | <test name="calprov" |
| 138 | build_path="packages/providers/CalendarProvider/tests" |
| 139 | package="com.android.providers.calendar.tests" |
| 140 | coverage_target="CalendarProvider" |
| 141 | continuous="true" /> |
| 142 | |
| 143 | <test name="camera" |
| 144 | build_path="packages/apps/Camera/tests" |
| 145 | package="com.android.cameratests" |
| 146 | runner="CameraInstrumentationTestRunner" |
| 147 | coverage_target="Camera" /> |
| 148 | |
| 149 | <test name="contactsprov" |
| 150 | build_path="packages/providers/GoogleContactsProvider/tests" |
| 151 | package="com.android.providers.contactstests" |
| 152 | coverage_target="ContactsProvider" /> |
| 153 | |
| 154 | <test name="email" |
| 155 | build_path="packages/apps/Email" |
| 156 | package="com.android.email.tests" |
| 157 | coverage_target="Email" |
| 158 | continuous="true" /> |
| 159 | |
| 160 | <test name="emailsmall" |
| 161 | build_path="packages/apps/Email" |
| 162 | package="com.android.email.tests" |
| 163 | class="com.android.email.SmallTests" |
| 164 | coverage_target="Email" /> |
| 165 | |
| 166 | <test name="media" |
| 167 | build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| 168 | package="com.android.mediaframeworktest" |
| 169 | runner=".MediaFrameworkTestRunner" |
| 170 | coverage_target="framework" |
| 171 | continuous="true" /> |
| 172 | |
| 173 | <test name="mediaunit" |
| 174 | build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| 175 | package="com.android.mediaframeworktest" |
| 176 | runner=".MediaFrameworkUnitTestRunner" |
| 177 | coverage_target="framework" /> |
| 178 | |
| 179 | <!-- obsolete? |
| 180 | <test name="mediaprov" |
| 181 | build_path="tests/MediaProvider" |
| 182 | package="com.android.mediaprovidertests" |
| 183 | runner=".MediaProviderTestsInstrumentation" |
| 184 | coverage_target="MediaProvider" /> |
| 185 | --> |
| 186 | |
| 187 | <test name="mms" |
| 188 | build_path="packages/apps/Mms" |
| 189 | package="com.android.mms.tests" |
| 190 | runner="com.android.mms.ui.MMSInstrumentationTestRunner" |
| 191 | coverage_target="Mms" /> |
| 192 | |
| 193 | <test name="mmslaunch" |
| 194 | build_path="packages/apps/Mms" |
| 195 | package="com.android.mms.tests" |
| 196 | runner="com.android.mms.SmsLaunchPerformance" |
| 197 | coverage_target="Mms" /> |
| 198 | |
| 199 | |
| 200 | <!-- obsolete? |
| 201 | <test name="ringtone" |
| 202 | build_path="tests/RingtoneSettings" |
| 203 | package="com.android.ringtonesettingstests" |
| 204 | runner=".RingtoneSettingsInstrumentationTestRunner" |
| 205 | coverage_target="Settings" /> |
| 206 | --> |
| 207 | |
| 208 | </test-definitions> |